package com.epoint.utils;

import java.util.ResourceBundle;

/**
 * jdbc.properties工具类
 * @author 
 *
 */
public class ConfigUtil {
	
	/**
	 * 获取properties中属性值ֵ
	 * @param configName 属性名
	 * @return 结果
	 */
	public static String getConfigValue(String configName) {
		if(configName == null || "".equals(configName)) {
			return "";
		}
		
		String configValue = "";
		ResourceBundle bundle = ResourceBundle.getBundle("jdbc");
		configValue = bundle.getString(configName);
		if(configValue != null) {
			configValue = configValue.trim();
		}
		return configValue;
	}
}
